#ifndef __MY_HEADERT2CSJ__
#define __MY_HEADERT2CSJ__

#include <my_header.h>
#include "workerslist.h"
#include "netfdslist.h"
#include "dirOpt.h"

typedef struct threadPoll_s{
    workers_t wkt;
    list_t ltt;
    pthread_mutex_t pmt;
    pthread_cond_t pct;
    int flag;
}threadPoll_t;

typedef struct train_s{
    int msglen;
    char msg[1004];
}train_t;

int make_worker(int workernum,threadPoll_t *tpt);

int init_thread_pool(threadPoll_t *tpt,int workernum);

int init_Tcp(char *ip,char *port);

int epoll_add(int epfd,int fd);

int epoll_del(int epfd,int fd);

int trans_file(int netfd);

#endif
